package dicts;

import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

public class LogicDict {

	public final static String CODE_EMS = "china-ems";
	public final static String CODE_POST = "china-post";
	public final static String CODE_HONGKONGPOST = "hong-kong-post";
	public final static String CODE_DHL = "dhl";
	public final static String CODE_UPS = "ups";
	public final static String CODE_FEDEX = "fedex";
	public final static String CODE_TNT = "tnt";
	public final static String CODE_SINGAPOREPOST = "singapore-post";
	public final static String CODE_POSTNL = "postnl";
	public final static String CODE_USPS = "usps";
	public final static String CODE_ALLIANCESERVICE = "allianceservice";
	public final static String CODE_CANADAPOST = "canadapost";
	public final static String CODE_CENTRALCOURIER = "centralcourier";
	public final static String CODE_CITYLINK = "citylink";
	public final static String CODE_DARTCOURIERS = "dartcouriers";
	public final static String CODE_DPD = "dpd";
	public final static String CODE_HUBNETEXPRESS = "hubnetexpress";
	public final static String CODE_INTERPARCEL = "interparcel";
	public final static String CODE_KOREAPOST = "koreapost";
	public final static String CODE_LONESTAR = "lonestar";
	public final static String CODE_MYHERMES = "myhermes";
	public final static String CODE_OCS = "ocs";
	public final static String CODE_PACELMONKEY = "pacelmonkey";
	public final static String CODE_PARCELFORCE = "parcelforce";
	public final static String CODE_ROYALMAIL = "royalmail";
	public final static String CODE_YODELDIRECT = "yodeldirect";
	public final static String CODE_ZIPMENTS = "zipments";
	public final static String CODE_OTHER = "other";

	public final static String NAME_EMS = "EMS或E邮宝";
	public final static String NAME_POST = "中国邮政";
	public final static String NAME_HONGKONGPOST = "香港邮政";
	public final static String NAME_DHL = "DHL";
	public final static String NAME_UPS = "UPS";
	public final static String NAME_FEDEX = "Fedex";
	public final static String NAME_TNT = "TNT";
	public final static String NAME_SINGAPOREPOST = "新加坡邮政";
	public final static String NAME_POSTNL = "荷兰邮政";
	public final static String NAME_USPS = "USPS";
	public final static String NAME_ALLIANCESERVICE = "AllianceService";
	public final static String NAME_CANADAPOST = "CanadaPost";
	public final static String NAME_CENTRALCOURIER = "CentralCourier";
	public final static String NAME_CITYLINK = "City-Link";
	public final static String NAME_DARTCOURIERS = "DartCouriers";
	public final static String NAME_DPD = "DPD";
	public final static String NAME_HUBNETEXPRESS = "HubnetExpress";
	public final static String NAME_INTERPARCEL = "Interparcel";
	public final static String NAME_KOREAPOST = "KoreaPost";
	public final static String NAME_LONESTAR = "Lonestar";
	public final static String NAME_MYHERMES = "MyHermes";
	public final static String NAME_OCS = "OCS";
	public final static String NAME_PACELMONKEY = "PacelMonkey";
	public final static String NAME_PARCELFORCE = "ParcelForce";
	public final static String NAME_ROYALMAIL = "Royal Mail";
	public final static String NAME_YODELDIRECT = "YodelDirect";
	public final static String NAME_ZIPMENTS = "Zipments";
	public final static String NAME_OTHER = "其他";

	public final static String SITE_EMS = "http://www.ems.com/";
	public final static String SITE_POST = "http://www.china-post.com/";
	public final static String SITE_HONGKONGPOST = "http://www.hongkong-post.com/";
	public final static String SITE_DHL = "http://www.dhl.com/";
	public final static String SITE_UPS = "http://www.ups.com/";
	public final static String SITE_FEDEX ="http://www.fedex.com/";
	public final static String SITE_TNT = "http://www.tnt.com/";
	public final static String SITE_SINGAPOREPOST = "http://www.singapore-post.com/";
	public final static String SITE_POSTNL = "http://www.postnl.com/";
	public final static String SITE_USPS = "http://www.usps.com/";
	public final static String SITE_ALLIANCESERVICE = "http://www.alliance-service.com/";
	public final static String SITE_CANADAPOST = "http://www.canadapost.ca";
	public final static String SITE_CENTRALCOURIER = "http://centralcourierllc.com";
	public final static String SITE_CITYLINK = "http://www.citylinkexpress.com";
	public final static String SITE_DARTCOURIERS = "http://dartcouriers.com/";
	public final static String SITE_DPD = "http://www.dpd.co.uk/";
	public final static String SITE_HUBNETEXPRESS = "http://www.hubnetexpress.com";
	public final static String SITE_INTERPARCEL = "http://www.interparcel.com/";
	public final static String SITE_KOREAPOST = "http://www.koreapost.go.kr";
	public final static String SITE_LONESTAR = "http://www.lonestardeliveryonline.com";
	public final static String SITE_MYHERMES = "https://www.myhermes.co.uk/";
	public final static String SITE_OCS = "http://www.ocschina.com";
	public final static String SITE_PACELMONKEY = "https://www.parcelmonkey.co.uk/";
	public final static String SITE_PARCELFORCE = "http://www.parcelforce.com/";
	public final static String SITE_ROYALMAIL = "https://www.royalmail.com";
	public final static String SITE_YODELDIRECT = "https://www.yodeldirect.co.uk/";
	public final static String SITE_ZIPMENTS = "https://zipments.com ";
	public final static String SITE_OTHER = "其他";

	public static final Map<String, String> LOGIC_MAP = Collections.synchronizedMap(new LinkedHashMap<String, String>());

	static {
		LOGIC_MAP.put(CODE_EMS, NAME_EMS);
		LOGIC_MAP.put(CODE_POST, NAME_POST);
		LOGIC_MAP.put(CODE_HONGKONGPOST, NAME_HONGKONGPOST);
		LOGIC_MAP.put(CODE_DHL, NAME_DHL);
		LOGIC_MAP.put(CODE_UPS, NAME_UPS);
		LOGIC_MAP.put(CODE_FEDEX, NAME_FEDEX);
		LOGIC_MAP.put(CODE_TNT, NAME_TNT);
		LOGIC_MAP.put(CODE_SINGAPOREPOST, NAME_SINGAPOREPOST);
		LOGIC_MAP.put(CODE_POSTNL, NAME_POSTNL);
		LOGIC_MAP.put(CODE_USPS, NAME_USPS);
		LOGIC_MAP.put(CODE_ALLIANCESERVICE, NAME_ALLIANCESERVICE);
		LOGIC_MAP.put(CODE_CANADAPOST, NAME_CANADAPOST);
		LOGIC_MAP.put(CODE_CENTRALCOURIER, NAME_CENTRALCOURIER);
		LOGIC_MAP.put(CODE_CITYLINK, NAME_CITYLINK);
		LOGIC_MAP.put(CODE_DARTCOURIERS, NAME_DARTCOURIERS);
		LOGIC_MAP.put(CODE_DPD, NAME_DPD);
		LOGIC_MAP.put(CODE_HUBNETEXPRESS, NAME_HUBNETEXPRESS);
		LOGIC_MAP.put(CODE_INTERPARCEL, NAME_INTERPARCEL);
		LOGIC_MAP.put(CODE_KOREAPOST, NAME_KOREAPOST);
		LOGIC_MAP.put(CODE_LONESTAR, NAME_LONESTAR);
		LOGIC_MAP.put(CODE_MYHERMES, NAME_MYHERMES);
		LOGIC_MAP.put(CODE_OCS, NAME_OCS);
		LOGIC_MAP.put(CODE_PACELMONKEY, NAME_PACELMONKEY);
		LOGIC_MAP.put(CODE_PARCELFORCE, NAME_PARCELFORCE);
		LOGIC_MAP.put(CODE_ROYALMAIL, NAME_ROYALMAIL);
		LOGIC_MAP.put(CODE_YODELDIRECT, NAME_YODELDIRECT);
		LOGIC_MAP.put(CODE_ZIPMENTS, NAME_ZIPMENTS);
		LOGIC_MAP.put(CODE_OTHER, NAME_OTHER);

	}
	
	public static final Map<String, String[]> LOGIC_SITE_MAP = Collections.synchronizedMap(new LinkedHashMap<String, String[]>());

	static {
		LOGIC_SITE_MAP.put(CODE_EMS, new String[] { NAME_EMS, SITE_EMS });
		LOGIC_SITE_MAP.put(CODE_POST,  new String[] { NAME_POST, SITE_POST });
		LOGIC_SITE_MAP.put(CODE_HONGKONGPOST,  new String[] { NAME_HONGKONGPOST, SITE_HONGKONGPOST });
		LOGIC_SITE_MAP.put(CODE_DHL,  new String[] { NAME_DHL, SITE_DHL });
		LOGIC_SITE_MAP.put(CODE_UPS,  new String[] { NAME_UPS, SITE_UPS });
		LOGIC_SITE_MAP.put(CODE_FEDEX,  new String[] { NAME_FEDEX, SITE_FEDEX });
		LOGIC_SITE_MAP.put(CODE_TNT,  new String[] { NAME_TNT, SITE_TNT });
		LOGIC_SITE_MAP.put(CODE_SINGAPOREPOST,  new String[] { NAME_SINGAPOREPOST, SITE_SINGAPOREPOST });
		LOGIC_SITE_MAP.put(CODE_POSTNL,  new String[] { NAME_POSTNL, SITE_POSTNL });
		LOGIC_SITE_MAP.put(CODE_USPS,  new String[] { NAME_USPS, SITE_USPS });
		LOGIC_SITE_MAP.put(CODE_ALLIANCESERVICE,  new String[] { NAME_ALLIANCESERVICE, SITE_ALLIANCESERVICE });
		LOGIC_SITE_MAP.put(CODE_CANADAPOST,  new String[] { NAME_CANADAPOST, SITE_CANADAPOST });
		LOGIC_SITE_MAP.put(CODE_CENTRALCOURIER,  new String[] { NAME_CENTRALCOURIER, SITE_CENTRALCOURIER });
		LOGIC_SITE_MAP.put(CODE_CITYLINK, new String[] { NAME_CITYLINK, SITE_CITYLINK });
		LOGIC_SITE_MAP.put(CODE_DARTCOURIERS,  new String[] { NAME_DARTCOURIERS, SITE_DARTCOURIERS });
		LOGIC_SITE_MAP.put(CODE_DPD,  new String[] { NAME_DPD, SITE_DPD });
		LOGIC_SITE_MAP.put(CODE_HUBNETEXPRESS,  new String[] { NAME_HUBNETEXPRESS, SITE_HUBNETEXPRESS });
		LOGIC_SITE_MAP.put(CODE_INTERPARCEL,  new String[] { NAME_INTERPARCEL, SITE_INTERPARCEL });
		LOGIC_SITE_MAP.put(CODE_KOREAPOST,  new String[] { NAME_KOREAPOST, SITE_KOREAPOST });
		LOGIC_SITE_MAP.put(CODE_LONESTAR,  new String[] { NAME_LONESTAR, SITE_LONESTAR });
		LOGIC_SITE_MAP.put(CODE_MYHERMES,  new String[] { NAME_MYHERMES, SITE_MYHERMES });
		LOGIC_SITE_MAP.put(CODE_OCS,  new String[] { NAME_OCS, SITE_OCS });
		LOGIC_SITE_MAP.put(CODE_PACELMONKEY,  new String[] { NAME_PACELMONKEY, SITE_PACELMONKEY });
		LOGIC_SITE_MAP.put(CODE_PARCELFORCE, new String[] { NAME_PARCELFORCE, SITE_PARCELFORCE });
		LOGIC_SITE_MAP.put(CODE_ROYALMAIL,  new String[] { NAME_ROYALMAIL, SITE_ROYALMAIL });
		LOGIC_SITE_MAP.put(CODE_YODELDIRECT,  new String[] { NAME_YODELDIRECT, SITE_YODELDIRECT });
		LOGIC_SITE_MAP.put(CODE_ZIPMENTS,  new String[] { NAME_ZIPMENTS, SITE_ZIPMENTS });
		LOGIC_SITE_MAP.put(CODE_OTHER,  new String[] { NAME_OTHER, SITE_OTHER });

	}
}
